package com.jade.platform.admin.facade.impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jade.core.web.service.BaseService;
import com.jade.platform.admin.api.entity.request.UserInfoQueryReq;
import com.jade.platform.admin.api.entity.vo.UserInfoVo;
import com.jade.platform.admin.facade.AdminFacade;
import com.jade.platform.admin.service.IUserInfoService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * admin门面实现类
 * @author Arnold 
 * @version 2022/07/06 19:21
**/
@Service("adminFacade")
@AllArgsConstructor
public class AdminFacadeImpl extends BaseService implements AdminFacade {

    private final IUserInfoService userInfoService;

    @Override
    public String alive() {
        return "adminFacade alive";
    }

    @Override
    public Page<UserInfoVo> page(UserInfoQueryReq userInfoQueryReq) {
        return userInfoService.page(userInfoQueryReq);
    }
}